package com.shop.mapper;

import com.shop.pojo.Log;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LogMapper {
    @Select("SELECT * FROM shoplog ORDER BY id DESC LIMIT #{limit}")
    public List<Log> selectLog(int limit);
    @Insert("INSERT INTO shoplog VALUES(NULL,#{username},NOW(),#{status},#{message})")
    public void addLog(Log log);
}
